<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.js"></script>
    <style>
    </style>
</head>
<body>
    <div id="app">
        <div :style="[style1,style3]">AAAA</div>
        <!-- 直接引用 -->
        <div :style="[style2]">BBBB</div>
    </div>
    <script>
        const vm = new Vue({
            el: "#app",
            data() {
                return {
                    style1: { color: "red" },
                    style2: { fontSize: "80px" },
                    style3: { fontStyle: "italic" },
                    style4: { textShadow: "1px 1px 2px green" },

                }
            }
        })
    </script>
</body>

</html>